package com.example.blogdemo1.common.model;

import com.example.blogdemo1.common.utils.DateUtils;
import lombok.Data;
import org.springframework.util.unit.DataUnit;

import java.util.Date;

/*
 * @author zzr
 * @date: 2025/10/05  18:00
 * @description:
 */

@Data
public class BlogInfo {

    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private boolean isLoginUser;
    private Date createTime;
    private Date updateTime;
    private String summary;
    public String getCreateTime() {
        return DateUtils.dateFormat(createTime);
    }
    // getter + setter
    public String getSummary() { return summary; }
    public void setSummary(String summary) { this.summary = summary; }
}
